package main

import (
	"gitee.com/dark.H/gs"
	"gitee.com/dark.H/gt"
)

func main() {

	panels := gt.NewListPanel("G list", gs.List[gs.Str]{
		"[aes-256-cfb][mode:][Single][match.p4p.1688.com]",
		"[aes-256-cfb][mode:][Single][s2.ssl.qhres2.com]",
		"[aes-256-cfb][mode:][Single][p1.ssl.qhimg.com]",
		"[aes-256-cfb][mode:][Single][s3m4.fenxi.com]",
		"[aes-256-cfb][mode:][Single][ssxd.mediav.com]",
		"[aes-256-cfb][mode:][Single][p1.ssl.qhimgs3.com]",
		"[aes-256-cfb][mode:][Single][ssxd.mediav.com]",
		"[aes-256-cfb][mode:][Single][ssxd.mediav.com]",
		"[aes-256-cfb][mode:][Single][ssxd.mediav.com]",
		"[aes-256-cfb][mode:][Single][p2.ssl.qhimg.com]",
		"[aes-256-cfb][mode:][Single][ssxd.mediav.com]",
		"[aes-256-cfb][mode:][Single][s.ssl.qhres2.com]",
		"[aes-256-cfb][mode:][Single][p2.ssl.qhimg.com]",
		"[aes-256-cfb][mode:][Single][s3m2.fenxi.com]",
		"[aes-256-cfb][mode:][Single][s3m2.fenxi.com]",
		"[aes-256-cfb][mode:][Single][s3m2.fenxi.com]",
		"[aes-256-cfb][mode:][Single][ssxd.mediav.com]",
		"[aes-256-cfb][mode:][Single][s3m2.fenxi.com]",
		"[aes-256-cfb][mode:][Single][s3m4.fenxi.com]",
		"[aes-256-cfb][mode:][Single][s3m4.fenxi.com]",
		"[aes-256-cfb][mode:][Single][s3m4.fenxi.com]",
		"[aes-256-cfb][mode:][Single][s3m4.fenxi.com]",
		"[aes-256-cfb][mode:][Single][s3m4.fenxi.com]",
		"[aes-256-cfb][mode:][Single][lib.sinaapp.com]",
		"[aes-256-cfb][mode:][Single][show-g.mediav.com]",
		"[aes-256-cfb][mode:][Single][s3m.mediav.com]",
		"[aes-256-cfb][mode:][Single][max-l.mediav.com]",
		"[aes-256-cfb][mode:][Single][www.google.com]",
		"[aes-256-cfb][mode:][Single][www.google.com]",
		"[aes-256-cfb][mode:][Single][alive.github.com]",
		"[aes-256-cfb][mode:][Single][www.google.com]",
		"[aes-256-cfb][mode:][Single][nexus-websocket-a.intercom.io]",
		"[aes-256-cfb][mode:][Single][alive.github.com]",
		"[aes-256-cfb][mode:][Single][www.google.com]",
		"[aes-256-cfb][mode:][Single][alive.github.com]",
		"[aes-256-cfb][mode:][Single][nexus-websocket-a.intercom.io]",
		"[aes-256-cfb][mode:][Single][www.google.com]",
		"[aes-256-cfb][mode:][Single][nexus-websocket-a.intercom.io]",
		"[aes-256-cfb][mode:][Single][alive.github.com]",
		"[aes-256-cfb][mode:][Single][nexus-websocket-a.intercom.io]",
		"[aes-256-cfb][mode:][Single][alive.github.com]",
		"[aes-256-cfb][mode:][Single][alive.github.com]",
		"[aes-256-cfb][mode:][Single][nexus-websocket-a.intercom.io]",
		"[aes-256-cfb][mode:][Single][www.google.com]",
		"[aes-256-cfb][mode:][Single][alive.github.com]",
	}, 20)

	gt.Renderbar(func(row, width int) {
		gt.OnSignal(func() {
			panels.Draw()
		}, panels.OnKey)
	})

	app := gt.NewApp()
	app.Regist("g", panels)
	app.Start()

}
